
// --------------------- 后台 管理页面处理函数 --------------------

//链接数据库
const connection = require('../data')
const path = require('path');
// 1.显示

// 1.1.首页/随笔
module.exports.background = (req, res) => {
  res.render('./background/background')
}

// 1.2.文章
module.exports.backgroundArticle = (req, res) => {
  res.render('./background/background-article')
}

// 1.3.日记
module.exports.backgroundDiary = (req, res) => {
  res.render('./background/background-diary')
}


// 1.4.评论
module.exports.backgroundComment = (req, res) => {
  res.render('./background/background-comment')
}

// 1.5.链接
module.exports.backgroundLink = (req, res) => {
  res.render('./background/background-link')
}


// 1.6.相册
module.exports.backgroundPhoto = (req, res) => {
  res.render('./background/background-photo')
}

// 1.7.文件
module.exports.backgroundFile = (req, res) => {
  res.render('./background/background-file')
}

// 1.8.设置
module.exports.backgroundSet = (req, res) => {
  res.render('./background/background-set')
}

// 1.9.选项
module.exports.backgroundOption = (req, res) => {
  res.render('./background/background-option')
}

// 1.10.收藏
module.exports.backgroundCollect = (req, res) => {
  res.render('./background/background-collect')
}


// 2.1.写随笔
module.exports.writeEssay = (req, res) => {
  res.render('./background/background-write-essay')
}
